package com.xiaocikuai.smallchunks.entity.Transaction;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 实体商品购买管理
 * </p>
 *
 * @author author1
 * @since 2024-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yshop_real_order")
public class RealOrder extends Model<RealOrder> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ro_id", type = IdType.AUTO)
    private Integer roId;

    /**
     * 用户id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 产品id
     */
    @TableField("pid")
    private Integer pid;

    @TableField("count")
    private Integer count;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 订单更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 订单状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 快递公司编号
     */
    @TableField("delivery_sn")
    private String deliverySn;

    /**
     * 快递公司名称
     */
    @TableField("delivery_name")
    private String deliveryName;

    /**
     * 快递单号
     */
    @TableField("delivery_id")
    private String deliveryId;

    /**
     * 收货信息id
     */
    @TableField("aid")
    private Integer aid;

    /**
     * 订单备注
     */
    @TableField("mark")
    private String mark;

    @TableField(exist = false)
    private int mode;


}
